package com.thinkgem.jeesite.modules.book.service;

import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.book.dao.BooksDao;
import com.thinkgem.jeesite.modules.book.entity.BkBooks;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 流程模型相关Controller
 * @author ThinkGem
 * @version 2013-11-03
 */
@Service
@Transactional(readOnly = true)
public class BooksService extends CrudService<BooksDao, BkBooks> {

    public boolean hasBooks(String booksName){
        return dao.hasBooks(booksName) >= 1;
    }
}
